package top.xbaoziplus.company.empty;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xbaozi
 * @description 用户表
 * @TableName tb_user
 */
@TableName(value ="tb_user")
@Data
@ApiModel("用户实体")
public class User implements Serializable {
    /** 账号正常 */
    public static final Integer NORMAL = 0;
    /** 账号已销毁 */
    public static final Integer DESTROYED = 1;

    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String password;

    /**
     * 工号
     */
    @ApiModelProperty("工号")
    private Long jobId;

    /**
     * 状态：0表示正常 1表示删除
     */
    @ApiModelProperty("状态：0表示正常 1表示删除")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}